package org.tarena.dang.service;

import java.sql.SQLException;
import java.util.List;

import org.tarena.dang.entity.Book;

public interface BookService {
	public List<Book> findByCid(int cid,int currentPage,int pageSize)throws SQLException;

	public int findByCiddAll(int cid)throws SQLException;

	public List<Book> findRecomBook(int n, int recomBookNnm)throws SQLException;

	public List<Book> findByPriceD(int cid, int currentPage, int pageSize)throws SQLException;

	public int getTotalPage(int totalSize, int pageSize);

	public List<Book> findBySort(int cid, int currentPage, int pageSize,
			String sort)throws SQLException;

	public List<Book> findByBook(int parentId, int cid, int currentPage,
			int pageSize, String sort)throws SQLException;

	public int findByTotalSize(int cid, int parentId)throws SQLException;

	public List<Book> searchByKeyWords(String keyWords)throws SQLException;

	public List<Book> searchByKeyWords(String keyWords, int cid)throws SQLException;

	public Book findByProId(int id)throws SQLException;

	public List<Book> findHotBooks()throws SQLException;


	
	
	

}
